import { checkLogin } from '../../../utils/util.js';
import api from '../../../config/api.js';

const app = getApp();
var random = Math.random();
Page({
    data: {
        navH: 0,
        userInfo: [],
    },

    onLoad: function (options) {
        var that = this;
        let navH = app.globalData.navHeight;
        /*顶部导航高度*/
        that.setData({
            navH: navH
        });
    },
    
    onShow: function () {
        /*判断是否登录*/
        let userInfo = checkLogin();
        console.log(666);
        console.log(userInfo);
        this.setData({
            userInfo: userInfo
        });
    },

    setting_save: function(e){
        console.log(e);
    }
})